//
//  JMRotationView.h
//  VoluntaryStar
//
//  Created by ios on 15/8/23.
//  Copyright (c) 2015年 ios. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "JMHeader.h"
#import "UIViewExt.h"
#import <Foundation/Foundation.h>


@class JMWheelView;

typedef enum{
    RotationViewButtonLeft = 0,
    RotationViewButtonCenter = 1,
    RotationViewButtonRight  = 2
}RotationViewButtonType;

typedef enum{
    RotationViewItemPuTongKaoSheng = 0,
    RotationViewItemZiZhuZhaoSheng = 1,
    RotationViewItemYiTiKaoSheng  = 2,
    RotationViewItemWoShiXueBa  = 3,
    RotationViewItemXiaLingYing  = 4,
    RotationViewItemXingGeCeShi  = 5
}RotationViewItemType;


@protocol JMRotationViewDelegate <NSObject>

-(void)rotationViewButtonClick:(RotationViewItemType) newtype;

@end


@interface JMRotationView : UIView

-(instancetype)initWithFrame:(CGRect)frame;

@property (nonatomic,assign) id <JMRotationViewDelegate>deleagte;

- (void)setRotationItem:(NSArray *)array;

@end
